<script setup lang="ts">
import { onBeforeMount, ref } from "@vue/runtime-core";
let props = defineProps({
    showShare:Boolean
})
const  emit =  defineEmits(['close'])
const options = [
    [
        { name: '复制链接', icon: 'link' },
        { name: '分享海报', icon: 'poster' },
        { name: '微信', icon: 'wechat' },
        { name: 'QQ', icon: 'qq' },
    ]
];
const select = (e:any) => {
    console.log(window.location.href);
    console.log(e);
}
let close = () => {
    emit('close',false)
    console.log('关闭分享了',props.showShare);
}
</script>

<template>
    <van-share-sheet v-model:show="showShare" @select="select" title="立即分享给好友" @close="close" :options="options" />
</template>

<style>
</style>